

package com.hazelcast.collection.impl.queue.model;

import java.util.Comparator;

public class VersionedObjectComparator<T> implements Comparator<VersionedObject<T>> {

    @Override
    public int compare(VersionedObject<T> o1, VersionedObject<T> o2) {
        return Integer.compare(o1.getVersion(), o2.getVersion());
    }
}
